package com.aaa.car.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 车辆类型表(TbCarType)实体类
 *
 * @author makejava
 * @since 2020-11-20 23:08:53
 */
public class TbCarType implements Serializable {
    private static final long serialVersionUID = -22667140001937503L;

    private Integer id;
    /**
     * 类型名称
     */
    private String typeName;
    /**
     * 起价
     */
    private Integer startPrice;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")//处理接收参数
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")//返回实体，处理成JSON所遵循的规则
    private Date addtime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getStartPrice() {
        return startPrice;
    }

    public void setStartPrice(Integer startPrice) {
        this.startPrice = startPrice;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

}